import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../views/UserInfo/LoginView.vue'),
    },
      {
      path: '/frame',
      name: 'frame',
        component: () => import('../views/FrameEntrance/FrameView.vue'),
        children: [
          {
            path: '/meetinglist',
            name: 'meetinglist',
            component: () => import('../views/Meeting/MeetingList.vue'),
          },
          {
            path: '/loginlist',
            name: 'loginlist',
            component: () => import('../views/UserInfo/LoginList.vue'),
          },
          {
            path: '/meetingreservationlist',
            name: 'meetingreservationlist',
            component: () => import('../views/MeetingReservation/MeetingReservationList.vue'),
          },
          {
            path: '/usermanagementlist',
            name: 'usermanagementlist',
            component: () => import('../views/UserManagement/UserManagementList.vue'),
          }, {
            path: '/roleListView',
            name: 'roleListView',
            component: () => import('../views/RoleManagement/RoleListView.vue'),
          }, {
            path: '/approverreservationlist',
            name: 'approverreservationlist',
            component: () => import('../views/ApproverReservation/ApproverReservationList.vue'),
          },
          
      ]
      
    },
   
  ],
})

export default router
